home *** CD-ROM | disk | FTP | other *** search
- /* f s c a n f
- *
- * Formatted input from a named stream. A pointer to the required
- * stream is passed to the function and items will be scanned from
- * that stream.
- *
- * The function returns the number items scanned on success, and
- * EOF on failure.
- *
- * Patchlevel 1.0
- *
- * Edit History:
- */
-
- #include "stdiolib.h"
-
- /*LINTLIBRARY*/
- /*VARARGS2*/
- /*ARGSUSED*/
-
- int fscanf(fp, fmt, va_alist)
-
- FILE *fp; /* stream */
- char *fmt; /* format */
- va_dcl
-
- {
- va_list arg; /* argument vector */
- int v; /* return value */
-
- va_start(arg);
- v = vfscanf(fp, fmt, arg);
- va_end(arg);
- return v;
- }
-